<template>
  <div class="my_header">
    <span>
      <slot name="left"></slot>
    </span>
    <section>
        <slot name="center"></slot>
    </section>
    <span>
        <slot name="right"></slot>
    </span>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
export default {
  setup() {},
};
</script>
<style lang="scss" scoped>
.my_header {
  height: 50px;
  display: flex;
  align-items: center;
  background: rgb(98, 98, 230);
  color: #fff;
  span {
    width: 60px;
    text-align: center;
  }
  section {
    flex: 1;
    text-align: center;
  }
}
</style>